#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

#include "ipluginfactory.h"
#include "pluginmanager.h"
#include "pluginmanager.h"
#include "pluginspec.h"
#include "xmlconfig.h"

#include "pageandview/pagemanager.h"
#include "pageandview/pagewidget.h"
#include "pageandview/viewmanager.h"
#include "pageandview/viewwidget.h"

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
    void saveSettings(QSettings* qs = 0);
    void readSettings(QSettings* qs = 0);

private:
    Ui::MainWindow *ui;
    PluginManager *pm;
    PageManager * pageManager;
    QSettings *m_settings;

protected:
    virtual void closeEvent(QCloseEvent *event);

private slots:

};

#endif // MAINWINDOW_H
